public var isExit: boolean = false;
public var goLevel: int = 0;
public var oText: Texture2D;
public var nText: Texture2D;
static public var overColor = new Color(1.0,0.5,0.0);
static public var mainColor = new Color(1.0,1.0,0.0);

function Start() {
	guiTexture.texture = nText;
}

function OnMouseEnter() {
	//renderer.material.color = overColor;
	guiTexture.texture = oText;
}

function OnMouseExit() {
	//renderer.material.color = mainColor;
	guiTexture.texture = nText;
}

function OnMouseUp() {
	if(isExit){
		if(goLevel!=0){
			CoreApplication.setNewLevel(goLevel);
			Application.LoadLevel(goLevel);
		}else{
			Application.Quit();
		}
	}
}